package com.story.story_serve.mapper.Book;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.story.story_pojo.Book.BookComment;
import com.story.story_pojo.Book.BookCommentList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName:  BookCommentMapper
 * description:
 *
 * @ author:郭海龙
 * @ Create：2024/6/4 13:02
 * @ Version:1.0
 */
@Mapper
public interface BookCommentMapper extends BaseMapper<BookComment> {
    @Select("select nikename,userimg,content,p_time from userinfo a join book_comment b on a.username = b.username where b_id = #{bId}")
    List<BookCommentList> showBComment(Integer bId);
}
